FormState::getCacheableArray

public FormState::getCacheableArray() Returns an array representation of the cacheable portion of the form state. Return value array The cacheable portion of the form state. Overrides FormStateInterface::getCacheableArray File core/lib/Drupal/Core/Form/FormState.php, line 880 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function getCacheableArray() { return [ 'build_info' => $this->getBuildInfo(), 'response' =>

StateInterface::set

public StateInterface::set($key, $value) Saves a value for a given key. Parameters string $key: The key of the data to store. mixed $value: The data to store. File core/lib/Drupal/Core/State/StateInterface.php, line 44 Class StateInterface Defines the interface for the state system. Namespace Drupal\Core\State Code public function set($key, $value);

MenuLinkContent::getMenuName

public MenuLinkContent::getMenuName() Gets the menu name of the custom menu link. Return value string The menu ID. Overrides MenuLinkContentInterface::getMenuName File core/modules/menu_link_content/src/Entity/MenuLinkContent.php, line 84 Class MenuLinkContent Defines the menu link content entity class. Namespace Drupal\menu_link_content\Entity Code public function getMenuName() { return $this->get('menu_name')->value; }

MenuLinkContent::getParentId

public MenuLinkContent::getParentId() Gets the plugin ID of the parent menu link. Return value string A plugin ID, or empty string if this link is at the top level. Overrides MenuLinkContentInterface::getParentId File core/modules/menu_link_content/src/Entity/MenuLinkContent.php, line 119 Class MenuLinkContent Defines the menu link content entity class. Namespace Drupal\menu_link_content\Entity Code public function getParentId() { // Cast the parent ID to a string, only an empty str

PoStreamReader::getLangcode

public PoStreamReader::getLangcode() Get language code. Return value string Language code string. Overrides PoMetadataInterface::getLangcode File core/lib/Drupal/Component/Gettext/PoStreamReader.php, line 103 Class PoStreamReader Implements Gettext PO stream reader. Namespace Drupal\Component\Gettext Code public function getLangcode() { return $this->_langcode; }

QueryAggregateInterface::conditionAggregate

public QueryAggregateInterface::conditionAggregate($field, $function = NULL, $value = NULL, $operator = '=', $langcode = NULL) Sets a condition for an aggregated value. Parameters string $field: The name of the field to aggregate by. string $function: The aggregation function, for example COUNT or MIN. mixed $value: The actual value of the field. $operator: Possible values: '=', '<>', '>', '>=', '<', '<=', 'STARTS_WITH', 'CONTAINS', 'ENDS_WITH': These operators expect $value

ConfigSubscriber::__construct

public ConfigSubscriber::__construct(LanguageManagerInterface $language_manager, LanguageDefault $language_default, ConfigFactoryInterface $config_factory, LanguageNegotiatorInterface $language_negotiator) Constructs a new class object. Parameters \Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager. \Drupal\Core\Language\LanguageDefault $language_default: The default language. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration facto

EntityListBuilder::getOperations

public EntityListBuilder::getOperations(EntityInterface $entity) Provides an array of information to build a list of operation links. Parameters \Drupal\Core\Entity\EntityInterface $entity: The entity the operations are for. Return value array An associative array of operation link data for this list, keyed by operation name, containing the following key-value pairs: title: The localized title of the operation. url: An instance of \Drupal\Core\Url for the operation URL. weight: The weight

TourInterface::getTips

public TourInterface::getTips() Returns the tips for this tour. Return value array An array of tip plugins. File core/modules/tour/src/TourInterface.php, line 50 Class TourInterface Provides an interface defining a tour entity. Namespace Drupal\tour Code public function getTips();

MenuLinkContent::getTitle

public MenuLinkContent::getTitle() Gets the title of the menu link. Return value string The title of the link. Overrides MenuLinkContentInterface::getTitle File core/modules/menu_link_content/src/Entity/MenuLinkContent.php, line 70 Class MenuLinkContent Defines the menu link content entity class. Namespace Drupal\menu_link_content\Entity Code public function getTitle() { return $this->get('title')->value; }