diff --git a/src/Plugin/Field/FieldWidget/InlineEntityFormBase.php b/src/Plugin/Field/FieldWidget/InlineEntityFormBase.php index 701f74d..a24a63b 100644 --- a/src/Plugin/Field/FieldWidget/InlineEntityFormBase.php +++ b/src/Plugin/Field/FieldWidget/InlineEntityFormBase.php @@ -48,7 +48,7 @@ abstract class InlineEntityFormBase extends WidgetBase implements ContainerFacto protected $matchOperatorOptions; /** - * Constructs a InlineEntityFormBase object. + * Constructs an InlineEntityFormBase object. * * @param array $plugin_id * The plugin_id for the widget. @@ -60,7 +60,7 @@ abstract class InlineEntityFormBase extends WidgetBase implements ContainerFacto * The widget settings. * @param array $third_party_settings * Any third party settings. - * @param \Drupal\Core\Entity\EntityManager $entity_manager + * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * Entity manager service. */ public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, array $third_party_settings, EntityManagerInterface $entity_manager) { @@ -117,10 +117,11 @@ abstract class InlineEntityFormBase extends WidgetBase implements ContainerFacto /** * Sets inline entity form ID. * - * @param string $iefId + * @param string $ief_id + * The inline entity form ID. */ - protected function setIefId($iefId) { - $this->iefId = $iefId; + protected function setIefId($ief_id) { + $this->iefId = $ief_id; } /** @@ -243,13 +244,12 @@ abstract class InlineEntityFormBase extends WidgetBase implements ContainerFacto } /** - * Returns an array of entity type labels (singular, plural) fit to be - * included in the UI text. + * Returns an array of entity type labels to be included in the UI text. * * @return array - * Array containing two values: - * - singular: label for singular form, - * - plural: label for plural form. + * Associative array with the following keys: + * - 'singular': The label for singular form. + * - 'plural': The label for plural form. */ protected function labels() { // The admin has specified the exact labels that should be used.