PhpStreamWrapperInterface::stream_flush

public PhpStreamWrapperInterface::stream_flush() Return value bool File core/lib/Drupal/Core/StreamWrapper/PhpStreamWrapperInterface.php, line 79 Class PhpStreamWrapperInterface Defines a generic PHP stream wrapper interface. Namespace Drupal\Core\StreamWrapper Code public function stream_flush();

NullRouteMatch::getRouteName

public NullRouteMatch::getRouteName() Returns the route name. Return value string|null The route name. NULL if no route is matched. Overrides RouteMatchInterface::getRouteName File core/lib/Drupal/Core/Routing/NullRouteMatch.php, line 15 Class NullRouteMatch Stub implementation of RouteMatchInterface for when there's no matched route. Namespace Drupal\Core\Routing Code public function getRouteName() { return NULL; }

NullRouteMatch::getParameter

public NullRouteMatch::getParameter($parameter_name) Returns the processed value of a named route parameter. Raw URL parameters are processed by the parameter conversion system, which does operations such as converting entity ID parameters to fully-loaded entities. For example, the path node/12345 would have a raw node ID parameter value of 12345, while the processed parameter value would be the corresponding loaded node object. Parameters string $parameter_name: The parameter name. Return val

StringBase::getId

public StringBase::getId() Gets the string unique identifier. Return value int The string identifier. Overrides StringInterface::getId File core/modules/locale/src/StringBase.php, line 67 Class StringBase Defines the locale string base class. Namespace Drupal\locale Code public function getId() { return isset($this->lid) ? $this->lid : NULL; }

NodePreviewController

Defines a controller to render a single node in preview. Hierarchy class \Drupal\Core\Entity\Controller\EntityViewController implements ContainerInjectionInterfaceclass \Drupal\node\Controller\NodePreviewController File core/modules/node/src/Controller/NodePreviewController.php, line 11 Namespace Drupal\node\Controller Members Name Modifiers Type Description EntityViewController::$entityManager protected property The entity manager EntityViewController::$renderer pr

LanguageNegotiatorInterface::saveConfiguration

LanguageNegotiatorInterface::saveConfiguration($type, $enabled_methods) Saves a list of language negotiation methods for a language type. Parameters string $type: The language type. int[] $enabled_methods: An array of language negotiation method weights keyed by method ID. File core/modules/language/src/LanguageNegotiatorInterface.php, line 190 Class LanguageNegotiatorInterface Common interface for language negotiation services. Namespace Drupal\language Code function saveConfiguratio

ContactFormEditForm::save

public ContactFormEditForm::save(array $form, FormStateInterface $form_state) Form submission handler for the 'save' action. Normally this method should be overridden to provide specific messages to the user and redirect the form after the entity has been saved. Parameters array $form: An associative array containing the structure of the form. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value int Either SAVED_NEW or SAVED_UPDATED, depending on the o

KeyValueFactory::get

public KeyValueFactory::get($collection) Constructs a new key/value store for a given collection name. Parameters string $collection: The name of the collection holding key and value pairs. Return value \Drupal\Core\KeyValueStore\KeyValueStoreInterface A key/value store implementation for the given $collection. Overrides KeyValueFactoryInterface::get File core/lib/Drupal/Core/KeyValueStore/KeyValueFactory.php, line 61 Class KeyValueFactory Defines the key/value store factory. Namespace

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

AliasStorage::ensureTableExists

protected AliasStorage::ensureTableExists() Check if the table exists and create it if not. File core/lib/Drupal/Core/Path/AliasStorage.php, line 371 Class AliasStorage Provides a class for CRUD operations on path aliases. Namespace Drupal\Core\Path Code protected function ensureTableExists() { try { $database_schema = $this->connection->schema(); if (!$database_schema->tableExists(static::TABLE)) { $schema_definition = $this->schemaDefinition(); $data