getFieldDefinition(); // This editor is only compatible with single-value image fields. return $field_definition->getFieldStorageDefinition()->getCardinality() === 1 && $field_definition->getType() === 'image'; } /** * {@inheritdoc} */ public function getAttachments() { return [ 'library' => [ 'image/quickedit.inPlaceEditor.image', ], ]; } }