FieldStorageConfig::getCardinality

public FieldStorageConfig::getCardinality() Returns the maximum number of items allowed for the field. Possible values are positive integers or FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED. Return value int The field cardinality. Overrides FieldStorageDefinitionInterface::getCardinality File core/modules/field/src/Entity/FieldStorageConfig.php, line 629 Class FieldStorageConfig Defines the Field storage configuration entity. Namespace Drupal\field\Entity Code public function

ConfigTranslationDeleteForm::submitForm

public ConfigTranslationDeleteForm::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/config_translation/src/Form/ConfigTranslationDeleteForm.php, line 132 Class ConfigTranslationDeleteForm Builds a form to delete configuration translation

BookManagerInterface::bookTreeCollectNodeLinks

public BookManagerInterface::bookTreeCollectNodeLinks(&$tree, &$node_links) Collects node links from a given menu tree recursively. Parameters array $tree: The menu tree you wish to collect node links from. array $node_links: An array in which to store the collected node links. File core/modules/book/src/BookManagerInterface.php, line 132 Class BookManagerInterface Provides an interface defining a book manager. Namespace Drupal\book Code public function bookTreeCollectNodeLink

SwitchShortcutSet::submitForm

public SwitchShortcutSet::submitForm(array &$form, FormStateInterface $form_state) Form submission handler. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Overrides FormInterface::submitForm File core/modules/shortcut/src/Form/SwitchShortcutSet.php, line 169 Class SwitchShortcutSet Builds the shortcut set switch form. Namespace Drupal\shortcut\Form Code public funct

FormState::setSubmitHandlers

public FormState::setSubmitHandlers(array $submit_handlers) Sets the submit handlers. Parameters array $submit_handlers: An array of submit handlers. Return value $this Overrides FormStateInterface::setSubmitHandlers File core/lib/Drupal/Core/Form/FormState.php, line 742 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function setSubmitHandlers(array $submit_handlers) { $this->submit_handlers = $submit_handlers; return $this

VocabularyDeleteForm::getDeletionMessage

protected VocabularyDeleteForm::getDeletionMessage() Gets the message to display to the user after deleting the entity. Return value string The translated string of the deletion message. Overrides EntityDeleteFormTrait::getDeletionMessage File core/modules/taxonomy/src/Form/VocabularyDeleteForm.php, line 36 Class VocabularyDeleteForm Provides a deletion confirmation form for taxonomy vocabulary. Namespace Drupal\taxonomy\Form Code protected function getDeletionMessage() { return $th

ExposedFormCache::setForm

public ExposedFormCache::setForm($view_id, $display_id, array $form_output) Save the Views exposed form for later use. Parameters string $view_id: The views ID. string $display_id: The current view display name. array $form_output: The form structure. Only needed when inserting the value. File core/modules/views/src/ExposedFormCache.php, line 29 Class ExposedFormCache Caches exposed forms, as they are heavy to generate. Namespace Drupal\views Code public function setForm($view_id, $di

LocalTaskDefault::$routeProvider

The route provider to load routes by name. Type: \Drupal\Core\Routing\RouteProviderInterface File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 24 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code protected $routeProvider;

Drupal::entityQuery

public static Drupal::entityQuery($entity_type, $conjunction = 'AND') Returns the entity query object for this entity type. Parameters string $entity_type: The entity type (for example, node) for which the query object should be returned. string $conjunction: (optional) Either 'AND' if all conditions in the query need to apply, or 'OR' if any of them is sufficient. Defaults to 'AND'. Return value \Drupal\Core\Entity\Query\QueryInterface The query object that can query the given entity type. F

views-ui-display-tab-bucket.html.twig

Default theme implementation for each "box" on the display query edit screen. Available variables: attributes: HTML attributes to apply to the container element. actions: Action links such as "Add", "And/Or, Rearrange" for the content. title: The title of the bucket, e.g. "Fields", "Filter Criteria", etc. content: Content items such as fields or settings in this container. name: The name of the bucket, e.g. "Fields", "Filter Criteria", etc. overridden: A boolean indicating the setting has