RedirectDestination::set

public RedirectDestination::set($new_destination) Sets the destination as URL. This method should be used really rarely, for example views uses it, in order to override all destination calls in all of its rendering. Parameters string $new_destination: The new destination. Return value $this Overrides RedirectDestinationInterface::set File core/lib/Drupal/Core/Routing/RedirectDestination.php, line 77 Class RedirectDestination Provides helpers for redirect destinations. Namespace Drupal

LanguageManagerInterface::getLanguage

public LanguageManagerInterface::getLanguage($langcode) Returns a language object from the given language code. Parameters string $langcode: The language code. Return value \Drupal\core\Language\LanguageInterface|null A fully-populated language object or NULL. File core/lib/Drupal/Core/Language/LanguageManagerInterface.php, line 105 Class LanguageManagerInterface Common interface for the language manager service. Namespace Drupal\Core\Language Code public function getLanguage($langco

Query::__construct

public Query::__construct(Connection $connection, $options) Constructs a Query object. Parameters \Drupal\Core\Database\Connection $connection: Database connection object. array $options: Array of query options. File core/lib/Drupal/Core/Database/Query/Query.php, line 69 Class Query Base class for query builders. Namespace Drupal\Core\Database\Query Code public function __construct(Connection $connection, $options) { $this->uniqueIdentifier = uniqid('', TRUE); $this->connec

ModulesUninstallConfirmForm::getQuestion

public ModulesUninstallConfirmForm::getQuestion() Returns the question to ask the user. Return value string The form question. The page title will be set to this value. Overrides ConfirmFormInterface::getQuestion File core/modules/system/src/Form/ModulesUninstallConfirmForm.php, line 90 Class ModulesUninstallConfirmForm Builds a confirmation form to uninstall selected modules. Namespace Drupal\system\Form Code public function getQuestion() { return $this->t('Confirm uninstall');

EntityType::hasLinkTemplate

public EntityType::hasLinkTemplate($key) Indicates if a link template exists for a given key. Parameters string $key: The link type. Return value bool TRUE if the link template exists, FALSE otherwise. Overrides EntityTypeInterface::hasLinkTemplate File core/lib/Drupal/Core/Entity/EntityType.php, line 625 Class EntityType Provides an implementation of an entity type and its metadata. Namespace Drupal\Core\Entity Code public function hasLinkTemplate($key) { $links = $this->getLin

ConfigNameException

Exception thrown when a config object name is invalid. Hierarchy class \Drupal\Core\Config\ConfigException extends \RuntimeExceptionclass \Drupal\Core\Config\ConfigNameException File core/lib/Drupal/Core/Config/ConfigNameException.php, line 8 Namespace Drupal\Core\Config Members

FilterFormatListBuilder::$entitiesKey

The key to use for the form element containing the entities. Type: string Overrides DraggableListBuilder::$entitiesKey File core/modules/filter/src/FilterFormatListBuilder.php, line 23 Class FilterFormatListBuilder Defines a class to build a listing of filter format entities. Namespace Drupal\filter Code protected $entitiesKey = 'formats';

MenuLinkManager::deleteLinksInMenu

public MenuLinkManager::deleteLinksInMenu($menu_name) Deletes all links having a certain menu name. If a link is not deletable but is resettable, the link will be reset to have its original menu name, under the assumption that the original menu is not the one we are deleting it from. Note that when resetting, if the original menu name is the same as the menu name passed to this method, the link will not be moved or deleted. Parameters string $menu_name: The name of the menu whose links will be

FormStateInterface::setButtons

public FormStateInterface::setButtons(array $buttons) Stores the submit and button elements for the form. Parameters array $buttons: The submit and button elements. Return value $this File core/lib/Drupal/Core/Form/FormStateInterface.php, line 638 Class FormStateInterface Provides an interface for an object containing the current state of a form. Namespace Drupal\Core\Form Code public function setButtons(array $buttons);

hook_preprocess_HOOK

hook_preprocess_HOOK(&$variables) Preprocess theme variables for a specific theme hook. This hook allows modules to preprocess theme variables for a specific theme hook. It should only be used if a module needs to override or add to the theme preprocessing for a theme hook it didn't define. For more detailed information, see the Theme system overview topic. Parameters $variables: The variables array (modify in place). Related topics Hooks Define functions that alter the behavior of Drupal