TranslationInterface

Interface for the translation.manager translation service. Hierarchy interface \Drupal\Core\StringTranslation\TranslationInterface Related topics Internationalization Internationalization and translation File core/lib/Drupal/Core/StringTranslation/TranslationInterface.php, line 10 Namespace Drupal\Core\StringTranslation Members Name Modifiers Type Description TranslationInterface::formatPlural public function Formats a string containing a count of items. TranslationI

DatabaseStorage::__construct

public DatabaseStorage::__construct(Connection $connection, $table, array $options = array(), $collection = StorageInterface::DEFAULT_COLLECTION) Constructs a new DatabaseStorage. Parameters \Drupal\Core\Database\Connection $connection: A Database connection to use for reading and writing configuration data. string $table: A database table name to store configuration data in. array $options: (optional) Any additional database connection options to use in queries. string $collection: (optional)

AccessResult::neutral

public static AccessResult::neutral() Creates an AccessResultInterface object with isNeutral() === TRUE. Return value \Drupal\Core\Access\AccessResult isNeutral() will be TRUE. File core/lib/Drupal/Core/Access/AccessResult.php, line 37 Class AccessResult Value object for passing an access result with cacheability metadata. Namespace Drupal\Core\Access Code public static function neutral() { return new AccessResultNeutral(); }

MenuInterface

Provides an interface defining a menu entity. Hierarchy interface \Drupal\Core\Entity\EntityInterface; interface \Drupal\Core\Config\Entity\ThirdPartySettingsInterfaceinterface \Drupal\Core\Config\Entity\ConfigEntityInterfaceinterface \Drupal\system\MenuInterface File core/modules/system/src/MenuInterface.php, line 10 Namespace Drupal\system Members Name Modifiers Type Description AccessibleInterface::access public function Checks data value access. CacheableDependen

HttpExceptionSubscriberBase

Utility base class for exception subscribers. A subscriber may extend this class and implement getHandledFormats() to indicate which request formats it will respond to. Then implement an on*() method for any error code (HTTP response code) that should be handled. For example, to handle 404 Not Found messages add a method: public function on404(GetResponseForExceptionEvent $event) {} That method should then call $event->setResponse() to set the response object for the exception. Alternative

ProxyBuilder::build

public ProxyBuilder::build($class_name, $proxy_class_name = '') Builds a proxy class string. Parameters string $class_name: The class name of the actual service. string $proxy_class_name: (optional) The class name of the proxy service. Return value string The full string with namespace class and methods. File core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php, line 57 Class ProxyBuilder Generates the string representation of the proxy service. Namespace Drupal\Component\ProxyBuil

DbUpdateController::triggerBatch

protected DbUpdateController::triggerBatch(Request $request) Starts the database update batch process. Parameters \Symfony\Component\HttpFoundation\Request $request: The current request object. File core/modules/system/src/Controller/DbUpdateController.php, line 568 Class DbUpdateController Controller routines for database update routes. Namespace Drupal\system\Controller Code protected function triggerBatch(Request $request) { $maintenance_mode = $this->state->get('system.mai

ContentTranslationController::__construct

public ContentTranslationController::__construct(ContentTranslationManagerInterface $manager) Initializes a content translation controller. Parameters \Drupal\content_translation\ContentTranslationManagerInterface $manager: A content translation manager instance. File core/modules/content_translation/src/Controller/ContentTranslationController.php, line 32 Class ContentTranslationController Base class for entity translation controllers. Namespace Drupal\content_translation\Controller

ConfigEntityStorage::importDelete

public ConfigEntityStorage::importDelete($name, Config $new_config, Config $old_config) Delete entities upon synchronizing configuration changes. Parameters string $name: The name of the configuration object. \Drupal\Core\Config\Config $new_config: A configuration object containing the new configuration data. \Drupal\Core\Config\Config $old_config: A configuration object containing the old configuration data. Overrides ImportableEntityStorageInterface::importDelete File core/lib/Drupal/Core/Co

CommentTypeListBuilder

Defines a class to build a listing of comment type entities. Hierarchy class \Drupal\Core\Entity\EntityHandlerBase uses DependencySerializationTrait, StringTranslationTraitclass \Drupal\Core\Entity\EntityListBuilder implements EntityHandlerInterface, EntityListBuilderInterfaceclass \Drupal\Core\Config\Entity\ConfigEntityListBuilderclass \Drupal\comment\CommentTypeListBuilder See also \Drupal\comment\Entity\CommentType File core/modules/comment/src/CommentTypeListBuilder.php, line 13 N