FormState::disableRedirect

public FormState::disableRedirect($no_redirect = TRUE) Prevents the form from redirecting. Parameters bool $no_redirect: If TRUE, the form will not redirect. Return value $this Overrides FormStateInterface::disableRedirect File core/lib/Drupal/Core/Form/FormState.php, line 642 Class FormState Stores information about the state of a form. Namespace Drupal\Core\Form Code public function disableRedirect($no_redirect = TRUE) { $this->no_redirect = (bool) $no_redirect; return $this

FileStorageFactory::getSync

static FileStorageFactory::getSync() Returns a FileStorage object working with the sync config directory. Return value \Drupal\Core\Config\FileStorage FileStorage File core/lib/Drupal/Core/Config/FileStorageFactory.php, line 27 Class FileStorageFactory Provides a factory for creating config file storage objects. Namespace Drupal\Core\Config Code static function getSync() { return new FileStorage(config_get_config_directory(CONFIG_SYNC_DIRECTORY)); }

UpdateManagerUpdate::$moduleHandler

The module handler. Type: \Drupal\Core\Extension\ModuleHandlerInterface File core/modules/update/src/Form/UpdateManagerUpdate.php, line 22 Class UpdateManagerUpdate Configure update settings for this site. Namespace Drupal\update\Form Code protected $moduleHandler;

Token::getInfo

public Token::getInfo() Returns metadata describing supported tokens. The metadata array contains token type, name, and description data as well as an optional pointer indicating that the token chains to another set of tokens. Return value array An associative array of token information, grouped by token type. The array structure is identical to that of hook_token_info(). See also hook_token_info() File core/lib/Drupal/Core/Utility/Token.php, line 369 Class Token Drupal placeholder/token

Item::setLink

public Item::setLink($link) Sets the link to the feed item. Parameters string $link: The link to the feed item. Return value \Drupal\aggregator\ItemInterface The called feed item entity. Overrides ItemInterface::setLink File core/modules/aggregator/src/Entity/Item.php, line 153 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function setLink($link) { return $this->set('link', $link); }

Color::validateColor

public static Color::validateColor(&$element, FormStateInterface $form_state, &$complete_form) Form element validation handler for #type 'color'. File core/lib/Drupal/Core/Render/Element/Color.php, line 52 Class Color Provides a form element for choosing a color. Namespace Drupal\Core\Render\Element Code public static function validateColor(&$element, FormStateInterface $form_state, &$complete_form) { $value = trim($element['#value']); // Default to black if no val

ConfigTranslationAddForm::getFormId

public ConfigTranslationAddForm::getFormId() Returns a unique string identifying the form. Return value string The unique string identifying the form. Overrides FormInterface::getFormId File core/modules/config_translation/src/Form/ConfigTranslationAddForm.php, line 16 Class ConfigTranslationAddForm Defines a form for adding configuration translations. Namespace Drupal\config_translation\Form Code public function getFormId() { return 'config_translation_add_form'; }

Item::setPostedTime

public Item::setPostedTime($timestamp) Sets the posted date of the feed item, as a Unix timestamp. Parameters int $timestamp: The posted date of the feed item, as a Unix timestamp. Return value \Drupal\aggregator\ItemInterface The called feed item entity. Overrides ItemInterface::setPostedTime File core/modules/aggregator/src/Entity/Item.php, line 195 Class Item Defines the aggregator item entity class. Namespace Drupal\aggregator\Entity Code public function setPostedTime($timestamp)

Token::findWithPrefix

public Token::findWithPrefix(array $tokens, $prefix, $delimiter = ':') Returns a list of tokens that begin with a specific prefix. Used to extract a group of 'chained' tokens (such as [node:author:name]) from the full list of tokens found in text. For example: $data = array( 'author:name' => '[node:author:name]', 'title' => '[node:title]', 'created' => '[node:created]', ); $results = Token::findWithPrefix($data, 'author'); $results == array('name' => '[

FeedInterface::getRefreshRate

public FeedInterface::getRefreshRate() Returns the refresh rate of the feed in seconds. Return value int The refresh rate of the feed in seconds. File core/modules/aggregator/src/FeedInterface.php, line 48 Class FeedInterface Provides an interface defining an aggregator feed entity. Namespace Drupal\aggregator Code public function getRefreshRate();