original_string: public function updateFormFields(FieldList $fields, $controller, $formName, $context)
      {
          $image = isset($context['Record']) ? $context['Record'] : null;
          if ($image && $image->appCategory() === 'image') {
              $fields->insertAfter(
                  'Title',
                  FocusPointField::create('FocusPoint', $image->fieldLabel('FocusPoint'), $image)
                      ->setReadonly($formName === 'fileSelectForm')
              );
          }
      }
code: public function updateFormFields(FieldList $fields, $controller, $formName, $context)
      {
          $image = isset($context['Record']) ? $context['Record'] : null;
          if ($image && $image->appCategory() === 'image') {
              $fields->insertAfter(
                  'Title',
                  FocusPointField::create('FocusPoint', $image->fieldLabel('FocusPoint'), $image)
                      ->setReadonly($formName === 'fileSelectForm')
              );
          }
      }
code_tokens: public function updateFormFields ( FieldList $ fields , $ controller , $ formName , $ context ) { $ image = isset ( $ context [ 'Record' ] ) ? $ context [ 'Record' ] : null ; if ( $ image && $ image -> appCategory ( ) === 'image' ) { $ fields -> insertAfter ( 'Title' , FocusPointField :: create ( 'FocusPoint' , $ image -> fieldLabel ( 'FocusPoint' ) , $ image ) -> setReadonly ( $ formName === 'fileSelectForm' ) ) ; } }
docstring: Add FocusPoint field for selecting focus.
docstring_tokens: Add FocusPoint field for selecting focus .