Drupal 8  8.0.2
TermSelection Class Reference
Inheritance diagram for TermSelection:

Public Member Functions

 entityQueryAlter (SelectInterface $query)
 
 buildConfigurationForm (array $form, FormStateInterface $form_state)
 
 getReferenceableEntities ($match=NULL, $match_operator= 'CONTAINS', $limit=0)
 
- Public Member Functions inherited from DefaultSelection
 __construct (array $configuration, $plugin_id, $plugin_definition, EntityManagerInterface $entity_manager, ModuleHandlerInterface $module_handler, AccountInterface $current_user)
 
 buildConfigurationForm (array $form, FormStateInterface $form_state)
 
 validateConfigurationForm (array &$form, FormStateInterface $form_state)
 
 submitConfigurationForm (array &$form, FormStateInterface $form_state)
 
 getReferenceableEntities ($match=NULL, $match_operator= 'CONTAINS', $limit=0)
 
 countReferenceableEntities ($match=NULL, $match_operator= 'CONTAINS')
 
 validateReferenceableEntities (array $ids)
 
 createNewEntity ($entity_type_id, $bundle, $label, $uid)
 
 validateReferenceableNewEntities (array $entities)
 
 entityQueryAlter (SelectInterface $query)
 

Additional Inherited Members

- Static Public Member Functions inherited from DefaultSelection
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 
static elementValidateFilter (&$element, FormStateInterface $form_state)
 
- Protected Member Functions inherited from DefaultSelection
 buildEntityQuery ($match=NULL, $match_operator= 'CONTAINS')
 
 reAlterQuery (AlterableInterface $query, $tag, $base_table)
 
- Protected Attributes inherited from DefaultSelection
 $entityManager
 
 $moduleHandler
 
 $currentUser
 

Detailed Description

Provides specific access control for the taxonomy_term entity type.

( id = "default:taxonomy_term", label = ("Taxonomy Term selection"), entity_types = {"taxonomy_term"}, group = "default", weight = 1 )

Member Function Documentation

buildConfigurationForm ( array  $form,
FormStateInterface  $form_state 
)

{Form constructor.Plugin forms are embedded in other forms. In order to know where the plugin form is located in the parent form, #parents and #array_parents must be known, but these are not available during the initial build phase. In order to have these properties available when building the plugin form's elements, let this method return a form element that has a #process callback and build the rest of the form in the callback. By the time the callback is executed, the element's #parents and #array_parents properties will have been set by the form API. For more documentation on #parents and #array_parents, see .

Parameters
array$formAn associative array containing the initial structure of the plugin form.
\Drupal\Core\Form\FormStateInterface$form_stateThe current state of the complete form.
Returns
array The form structure.
}

Implements PluginFormInterface.

References t().

Here is the call graph for this function:

entityQueryAlter ( SelectInterface  $query)

{Allows the selection to alter the SelectQuery generated by EntityFieldQuery.

Parameters
\Drupal\Core\Database\Query\SelectInterface$queryA Select Query object.
}

Implements SelectionInterface.

getReferenceableEntities (   $match = NULL,
  $match_operator = 'CONTAINS',
  $limit = 0 
)

{Gets the list of referenceable entities.

Returns
array A nested array of entities, the first level is keyed by the entity bundle, which contains an array of entity labels (escaped), keyed by the entity ID.
}

Implements SelectionInterface.

References Drupal\entityManager(), Html\escape(), and Entity\load().

Here is the call graph for this function:


The documentation for this class was generated from the following file: