DatabaseStorageExpirable::setWithExpireIfNotExists

DatabaseStorageExpirable::setWithExpireIfNotExists($key, $value, $expire) Sets a value for a given key with a time to live if it does not yet exist. Parameters string $key: The key of the data to store. mixed $value: The data to store. int $expire: The time to live for items, in seconds. Return value bool TRUE if the data was set, or FALSE if it already existed. Overrides KeyValueStoreExpirableInterface::setWithExpireIfNotExists File core/lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable

FieldConfigBase::setLabel

public FieldConfigBase::setLabel($label) Sets the field definition label. Parameters string $label: The label to set. Return value $this Overrides FieldConfigInterface::setLabel File core/lib/Drupal/Core/Field/FieldConfigBase.php, line 296 Class FieldConfigBase Base class for configurable field definitions. Namespace Drupal\Core\Field Code public function setLabel($label) { $this->label = $label; return $this; }

EntityViewBuilderInterface

Defines an interface for entity view builders. Hierarchy interface \Drupal\Core\Entity\EntityViewBuilderInterface Related topics Entity API Describes how to define and manipulate content and configuration entities. File core/lib/Drupal/Core/Entity/EntityViewBuilderInterface.php, line 13 Namespace Drupal\Core\Entity Members Name Modifiers Type Description EntityViewBuilderInterface::buildComponents public function Builds the component fields and properties of a set of e

DbDumpCommand::getTemplate

protected DbDumpCommand::getTemplate() The script template. Return value string The template for the generated PHP script. File core/lib/Drupal/Core/Command/DbDumpCommand.php, line 372 Class DbDumpCommand Provides a command to dump the current database to a script. Namespace Drupal\Core\Command Code protected function getTemplate() { // The template contains an instruction for the file to be ignored by PHPCS. // This is because the files can be huge and coding standards are // i

ConfigImporterFieldPurger::initializeSandbox

protected static ConfigImporterFieldPurger::initializeSandbox(array &$context, ConfigImporter $config_importer) Initializes the batch context sandbox for processing field deletions. This calculates the number of steps necessary to purge all the field data and saves data for later use. Parameters array $context: The batch context. \Drupal\Core\Config\ConfigImporter $config_importer: The config importer. File core/modules/field/src/ConfigImporterFieldPurger.php, line 65 Class ConfigImpor

DrupalKernelInterface::preHandle

public DrupalKernelInterface::preHandle(Request $request) Helper method that does request related initialization. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request. File core/lib/Drupal/Core/DrupalKernelInterface.php, line 136 Class DrupalKernelInterface The interface for DrupalKernel, the core of Drupal. Namespace Drupal\Core Code public function preHandle(Request $request);

ConfigNamesMapper::getTypeName

public ConfigNamesMapper::getTypeName() Returns the name of the type of data the mapper encapsulates. Return value string The name of the type of data the mapper encapsulates. Overrides ConfigMapperInterface::getTypeName File core/modules/config_translation/src/ConfigNamesMapper.php, line 462 Class ConfigNamesMapper Configuration mapper base implementation. Namespace Drupal\config_translation Code public function getTypeName() { return $this->t('Settings'); }

SelectInterface::havingConditions

public &SelectInterface::havingConditions() Gets a list of all conditions in the HAVING clause. This method returns by reference. That allows alter hooks to access the data structure directly and manipulate it before it gets compiled. Return value array An array of conditions. See also \Drupal\Core\Database\Query\ConditionInterface::conditions() File core/lib/Drupal/Core/Database/Query/SelectInterface.php, line 556 Class SelectInterface Interface definition for a Select Query object.

CommentLazyBuilders::$commentManager

Comment manager service. Type: \Drupal\comment\CommentManagerInterface File core/modules/comment/src/CommentLazyBuilders.php, line 38 Class CommentLazyBuilders Defines a service for comment #lazy_builder callbacks. Namespace Drupal\comment Code protected $commentManager;

Checkbox::processCheckbox

public static Checkbox::processCheckbox(&$element, FormStateInterface $form_state, &$complete_form) Sets the #checked property of a checkbox element. File core/lib/Drupal/Core/Render/Element/Checkbox.php, line 110 Class Checkbox Provides a form element for a single checkbox. Namespace Drupal\Core\Render\Element Code public static function processCheckbox(&$element, FormStateInterface $form_state, &$complete_form) { $value = $element['#value']; $return_value = $eleme