diff --git a/core/lib/Drupal/Core/Entity/EntityType.php b/core/lib/Drupal/Core/Entity/EntityType.php index cd30ec8..38b6170 100644 --- a/core/lib/Drupal/Core/Entity/EntityType.php +++ b/core/lib/Drupal/Core/Entity/EntityType.php @@ -210,7 +210,7 @@ class EntityType implements EntityTypeInterface { * * @var bool */ - protected $common_reference = FALSE; + protected $common_reference_target = FALSE; /** * The list cache contexts for this entity type. @@ -737,8 +737,8 @@ public function getConfigDependencyKey() { /** * {@inheritdoc} */ - public function isCommonReference() { - return $this->common_reference; + public function isCommonReferenceTarget() { + return $this->common_reference_target; } } diff --git a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php index 2864e3c..101e372 100644 --- a/core/lib/Drupal/Core/Entity/EntityTypeInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityTypeInterface.php @@ -691,6 +691,6 @@ public function getConfigDependencyKey(); * @return bool * TRUE if the entity type is a common reference; FALSE otherwise. */ - public function isCommonReference(); + public function isCommonReferenceTarget(); } diff --git a/core/modules/entity_reference/src/ConfigurableEntityReferenceItem.php b/core/modules/entity_reference/src/ConfigurableEntityReferenceItem.php index 9a55c2b..b775013 100644 --- a/core/modules/entity_reference/src/ConfigurableEntityReferenceItem.php +++ b/core/modules/entity_reference/src/ConfigurableEntityReferenceItem.php @@ -228,7 +228,7 @@ public static function getPreconfiguredOptions() { // options. $entity_types = \Drupal::entityManager()->getDefinitions(); $common_references = array_filter($entity_types, function (EntityTypeInterface $entity_type) { - return $entity_type->isCommonReference(); + return $entity_type->isCommonReferenceTarget(); }); /** @var \Drupal\Core\Entity\EntityTypeInterface $entity_type */ diff --git a/core/modules/field_ui/src/Form/FieldStorageAddForm.php b/core/modules/field_ui/src/Form/FieldStorageAddForm.php index fec3b3c..415c286 100644 --- a/core/modules/field_ui/src/Form/FieldStorageAddForm.php +++ b/core/modules/field_ui/src/Form/FieldStorageAddForm.php @@ -431,7 +431,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { * * @param string $field_name * The field name. - * @param bool|null $widget_id + * @param string|null $widget_id * (optional) The plugin ID of the widget. Defaults to NULL. */ protected function configureEntityFormDisplay($field_name, $widget_id = NULL) { @@ -449,7 +449,7 @@ protected function configureEntityFormDisplay($field_name, $widget_id = NULL) { * * @param string $field_name * The field name. - * @param bool|null $formatter_id + * @param string|null $formatter_id * (optional) The plugin ID of the formatter. Defaults to NULL. */ protected function configureEntityViewDisplay($field_name, $formatter_id = NULL) { diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module index c247d14..c1896fd 100644 --- a/core/modules/taxonomy/taxonomy.module +++ b/core/modules/taxonomy/taxonomy.module @@ -62,20 +62,20 @@ function taxonomy_help($route_name, RouteMatchInterface $route_match) { $output .= '
' . t('Managing terms') . '
'; $output .= '
' . t('Users who have the Administer vocabularies and terms permission or the Edit terms permission for a particular vocabulary can add, edit, and organize the terms in a vocabulary from a vocabulary\'s term listing page, which can be accessed by going to the Taxonomy administration page and clicking List terms in the Operations column. Users must have the Administer vocabularies and terms permission or the Delete terms permission for a particular vocabulary to delete terms.' , array('!taxonomy_admin' => \Drupal::url('entity.taxonomy_vocabulary.collection'))) . '
'; $output .= '
' . t('Classifying entity content') . '
'; - $output .= '
' . t('A user with the Administer fields permission for a certain entity type may add reference fields to the entity, which will allow entities to be classified using taxonomy terms. See the Field module help and the Field UI help pages for general information on fields and how to create and manage them. The reference field can either be a Term reference or an Entity reference field:' , array('!field_ui' => $field_ui_url, '!field' => \Drupal::url('help.page', array('name' => 'field')))); + $output .= '
' . t('A user with the Administer fields permission for a certain entity type may add reference fields to the entity, which will allow entities to be classified using taxonomy terms. See the Field module help and the Field UI help pages for general information on fields and how to create and manage them. The reference field can either be a Taxonomy Term reference or an Entity reference field:' , array('!field_ui' => $field_ui_url, '!field' => \Drupal::url('help.page', array('name' => 'field')))); $output .= ''; $output .= '
'; $output .= '
' . t('Adding new terms during content creation') . '
'; - $output .= '
' . t('Allowing users to add new terms gradually builds a vocabulary as content is added and edited. Users can add new terms if the Autocomplete term widget (tagging) is chosen for a Term reference field, or if either of the two Autocomplete widgets is chosen for an Entity reference field. In this case you need to enable the Create referenced entity option, and restrict the field to one vocabulary.') . '
'; + $output .= '
' . t('Allowing users to add new terms gradually builds a vocabulary as content is added and edited. Users can add new terms if the Autocomplete term widget (tagging) is chosen for a Taxonomy Term reference field, or if either of the two Autocomplete widgets is chosen for an Entity reference field. In this case you need to enable the Create referenced entity option, and restrict the field to one vocabulary.') . '
'; $output .= '
' . t('Configuring displays and form displays ') . '
'; $output .= '
' . t('The reference fields have several formatters and widgets available on the Manage display and Manage form display pages, respectively:'); $output .= '