ConfigurableLanguage::preSave

public ConfigurableLanguage::preSave(EntityStorageInterface $storage) Acts on an entity before the presave hook is invoked. Used before the entity is saved and before invoking the presave hook. Note that in case of translatable content entities this callback is only fired on their current translation. It is up to the developer to iterate over all translations if needed. This is different from its counterpart in the Field API, FieldItemListInterface::preSave(), which is fired on all field transl

LanguageConfigOverrideCrudEvent::getLanguageConfigOverride

public LanguageConfigOverrideCrudEvent::getLanguageConfigOverride() Gets configuration object. Return value \Drupal\language\Config\LanguageConfigOverride The configuration object that caused the event to fire. File core/modules/language/src/Config/LanguageConfigOverrideCrudEvent.php, line 37 Class LanguageConfigOverrideCrudEvent Provides a language override event for event listeners. Namespace Drupal\language\Config Code public function getLanguageConfigOverride() { return $this-&g

ContentEntityBase::bundle

public ContentEntityBase::bundle() Gets the bundle of the entity. Return value string The bundle of the entity. Defaults to the entity type ID if the entity type does not make use of different bundles. Overrides Entity::bundle File core/lib/Drupal/Core/Entity/ContentEntityBase.php, line 429 Class ContentEntityBase Implements Entity Field API specific enhancements to the Entity class. Namespace Drupal\Core\Entity Code public function bundle() { return $this->getEntityKey('bundle')

NodeAccessGrantsCacheContext::checkNodeGrants

protected NodeAccessGrantsCacheContext::checkNodeGrants($operation) Checks the node grants for the given operation. Parameters string $operation: The operation to check the node grants for. Return value string The string representation of the cache context. File core/modules/node/src/Cache/NodeAccessGrantsCacheContext.php, line 63 Class NodeAccessGrantsCacheContext Defines the node access view cache context service. Namespace Drupal\node\Cache Code protected function checkNodeGrants(

SelectExtender::rightJoin

public SelectExtender::rightJoin($table, $alias = NULL, $condition = NULL, $arguments = array()) Right Outer Join against another table in the database. Parameters $table: The table against which to join. May be a string or another SelectQuery object. If a query object is passed, it will be used as a subselect. Unless the table name starts with the database / schema name and a dot it will be prefixed. $alias: The alias for the table. In most cases this should be the first letter of the table,

NodeAccessGrantsCacheContext::getCacheableMetadata

public NodeAccessGrantsCacheContext::getCacheableMetadata($operation = NULL) Gets the cacheability metadata for the context based on the parameter value. There are three valid cases for the returned CacheableMetadata object: An empty object means this can be optimized away safely. A max-age of 0 means that this context can never be optimized away. It will never bubble up and cache tags will not be used. Any non-zero max-age and cache tags will bubble up into the cache item if this is optimized

BookSettingsForm::submitForm

public BookSettingsForm::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 ConfigFormBase::submitForm File core/modules/book/src/Form/BookSettingsForm.php, line 68 Class BookSettingsForm Configure book settings for this site. Namespace Drupal\book\Form Code public function submi

BanIpManager::findById

public BanIpManager::findById($ban_id) Finds a banned IP address by its ID. Parameters int $ban_id: The ID for a banned IP address. Return value string|false Either the banned IP address or FALSE if none exist with that ID. Overrides BanIpManagerInterface::findById File core/modules/ban/src/BanIpManager.php, line 65 Class BanIpManager Ban IP manager. Namespace Drupal\ban Code public function findById($ban_id) { return $this->connection->query("SELECT ip FROM {ban_ip} WHERE ii

PREG_CLASS_CJK

Matches CJK (Chinese, Japanese, Korean) letter-like characters. This list is derived from the "East Asian Scripts" section of http://www.unicode.org/charts/index.html, as well as a comment on http://unicode.org/reports/tr11/tr11-11.html listing some character ranges that are reserved for additional CJK ideographs. The character ranges do not include numbers, punctuation, or symbols, since these are handled separately in search. Note that radicals and strokes are considered symbols. (See http://

LinkManagerBase::getLinkDomain

protected LinkManagerBase::getLinkDomain() Gets the link domain. Return value string The link domain. File core/modules/rest/src/LinkManager/LinkManagerBase.php, line 45 Class LinkManagerBase Defines an abstract base-class for REST link manager objects. Namespace Drupal\rest\LinkManager Code protected function getLinkDomain() { if (empty($this->linkDomain)) { if ($domain = $this->configFactory->get('rest.settings')->get('link_domain')) { $this->linkDomain =