UrlGeneratorTrait::redirect

protected UrlGeneratorTrait::redirect($route_name, array $route_parameters = [], array $options = [], $status = 302) Returns a redirect response object for the specified route. Parameters string $route_name: The name of the route to which to redirect. array $route_parameters: (optional) Parameters for the route. array $options: (optional) An associative array of additional options. int $status: (optional) The HTTP redirect status code for the redirect. The default is 302 Found. Return value \

AccessResult::allowedIfHasPermissions

public static AccessResult::allowedIfHasPermissions(AccountInterface $account, array $permissions, $conjunction = 'AND') Creates an allowed access result if the permissions are present, neutral otherwise. Checks the permission and adds a 'user.permissions' cache contexts. Parameters \Drupal\Core\Session\AccountInterface $account: The account for which to check permissions. array $permissions: The permissions to check. string $conjunction: (optional) 'AND' if all permissions are required, 'OR'

DataDefinition::getDescription

public DataDefinition::getDescription() Returns a human readable description. Descriptions are usually used on user interfaces where the data is edited or displayed. Return value string|null The description, or NULL if no description is available. Overrides DataDefinitionInterface::getDescription File core/lib/Drupal/Core/TypedData/DataDefinition.php, line 93 Class DataDefinition A typed data definition class for defining data based on defined data types. Namespace Drupal\Core\TypedDat

FieldItemInterface::getEntity

public FieldItemInterface::getEntity() Gets the entity that field belongs to. Return value \Drupal\Core\Entity\FieldableEntityInterface The entity object. File core/lib/Drupal/Core/Field/FieldItemInterface.php, line 96 Class FieldItemInterface Interface for entity field items. Namespace Drupal\Core\Field Code public function getEntity();

LocalTaskInterface::getRouteParameters

public LocalTaskInterface::getRouteParameters(RouteMatchInterface $route_match) Returns the route parameters needed to render a link for the local task. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value array An array of parameter names and values. File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 46 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function getRou

TranslateFilterForm::resetForm

public TranslateFilterForm::resetForm(array &$form, FormStateInterface $form_state) Provides a submit handler for the reset button. File core/modules/locale/src/Form/TranslateFilterForm.php, line 95 Class TranslateFilterForm Provides a filtered translation edit form. Namespace Drupal\locale\Form Code public function resetForm(array &$form, FormStateInterface $form_state) { $_SESSION['locale_translate_filter'] = array(); $form_state->setRedirect('locale.translate_page');

Message::getSubject

public Message::getSubject() Returns the message subject. Return value string The message subject. Overrides MessageInterface::getSubject File core/modules/contact/src/Entity/Message.php, line 81 Class Message Defines the contact message entity. Namespace Drupal\contact\Entity Code public function getSubject() { return $this->get('subject')->value; }

StorageComparer::createChangelist

public StorageComparer::createChangelist() File core/lib/Drupal/Core/Config/StorageComparer.php, line 201 Class StorageComparer Defines a config storage comparer. Namespace Drupal\Core\Config Code public function createChangelist() { foreach ($this->getAllCollectionNames() as $collection) { $this->changelist[$collection] = $this->getEmptyChangelist(); $this->getAndSortConfigData($collection); $this->addChangelistCreate($collection); $this->addChangel

PathValidator::isValid

public PathValidator::isValid($path) Checks if the URL path is valid and accessible by the current user. Parameters string $path: The path to check. Return value bool TRUE if the path is valid. Overrides PathValidatorInterface::isValid File core/lib/Drupal/Core/Path/PathValidator.php, line 73 Class PathValidator Provides a default path validator and access checker. Namespace Drupal\Core\Path Code public function isValid($path) { return (bool) $this->getUrlIfValid($path); }

PoDatabaseWriter::getReport

public PoDatabaseWriter::getReport() Get the report of the write operations. File core/modules/locale/src/PoDatabaseWriter.php, line 82 Class PoDatabaseWriter Gettext PO writer working with the locale module database. Namespace Drupal\locale Code public function getReport() { return $this->report; }