ViewEditForm::cancel

public ViewEditForm::cancel(array $form, FormStateInterface $form_state) Form submission handler for the 'cancel' action. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. File core/modules/views_ui/src/ViewEditForm.php, line 328 Class ViewEditForm Form controller for the Views edit form. Namespace Drupal\views_ui Code public function cancel(array $form, FormStateInterface

UpdateFetcher::__construct

public UpdateFetcher::__construct(ConfigFactoryInterface $config_factory, ClientInterface $http_client) Constructs a UpdateFetcher. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory. \GuzzleHttp\ClientInterface $http_client: A Guzzle client object. File core/modules/update/src/UpdateFetcher.php, line 51 Class UpdateFetcher Fetches project information from remote locations. Namespace Drupal\update Code public function __construct(ConfigFactoryInt

PoMemoryWriter::setHeader

PoMemoryWriter::setHeader(PoHeader $header) Implements Drupal\Component\Gettext\PoMetadataInterface:setHeader(). Not implemented. Not relevant for the MemoryWriter. Overrides PoMetadataInterface::setHeader File core/lib/Drupal/Component/Gettext/PoMemoryWriter.php, line 84 Class PoMemoryWriter Defines a Gettext PO memory writer, to be used by the installer. Namespace Drupal\Component\Gettext Code function setHeader(PoHeader $header) { }

ImageStyleInterface::getPathToken

public ImageStyleInterface::getPathToken($uri) Generates a token to protect an image style derivative. This prevents unauthorized generation of an image style derivative, which can be costly both in CPU time and disk space. Parameters string $uri: The URI of the original image of this style. Return value string An eight-character token which can be used to protect image style derivatives against denial-of-service attacks. File core/modules/image/src/ImageStyleInterface.php, line 91 Class

SearchPageRepository::sortSearchPages

public SearchPageRepository::sortSearchPages($search_pages) Sorts a list of search pages. Parameters \Drupal\search\SearchPageInterface[] $search_pages: The unsorted list of search pages. Return value \Drupal\search\SearchPageInterface[] The sorted list of search pages. Overrides SearchPageRepositoryInterface::sortSearchPages File core/modules/search/src/SearchPageRepository.php, line 106 Class SearchPageRepository Provides a repository for Search Page config entities. Namespace Drupa

MenuTreeStorage::doDeleteMultiple

protected MenuTreeStorage::doDeleteMultiple(array $ids) Purge menu links from the database. Parameters array $ids: A list of menu link IDs to be purged. File core/lib/Drupal/Core/Menu/MenuTreeStorage.php, line 1473 Class MenuTreeStorage Provides a menu tree storage using the database. Namespace Drupal\Core\Menu Code protected function doDeleteMultiple(array $ids) { $this->connection->delete($this->table, $this->options) ->condition('id', $ids, 'IN') ->execu

StateTransitionValidation::__construct

public StateTransitionValidation::__construct(EntityTypeManagerInterface $entity_type_manager, QueryFactory $query_factory) Constructs a new StateTransitionValidation. Parameters \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager service. \Drupal\Core\Entity\Query\QueryFactory $query_factory: The entity query factory. File core/modules/content_moderation/src/StateTransitionValidation.php, line 45 Class StateTransitionValidation Validates whether a

SearchPageRepositoryInterface::isSearchActive

public SearchPageRepositoryInterface::isSearchActive() Returns whether search is active. Return value bool TRUE if at least one search is active, FALSE otherwise. File core/modules/search/src/SearchPageRepositoryInterface.php, line 24 Class SearchPageRepositoryInterface Provides the interface for a repository Search Page entities. Namespace Drupal\search Code public function isSearchActive();

BlockEntityOffCanvasForm::actions

protected BlockEntityOffCanvasForm::actions(array $form, FormStateInterface $form_state) Returns an array of supported actions for the current entity form. @todo Consider introducing a 'preview' action here, since it is used by many entity types. Overrides BlockForm::actions File core/modules/outside_in/src/Block/BlockEntityOffCanvasForm.php, line 61 Class BlockEntityOffCanvasForm Provides form for block instance forms when used in the off-canvas tray. Namespace Drupal\outside_in\Block

ExportForm::$languageManager

The language manager. Type: \Drupal\Core\Language\LanguageManagerInterface File core/modules/locale/src/Form/ExportForm.php, line 24 Class ExportForm Form for the Gettext translation files export form. Namespace Drupal\locale\Form Code protected $languageManager;