ContentTranslationManagerInterface::getTranslationHandler

public ContentTranslationManagerInterface::getTranslationHandler($entity_type_id) Returns an instance of the Content translation handler. Parameters string $entity_type_id: The type of the entity being translated. Return value \Drupal\content_translation\ContentTranslationHandlerInterface An instance of the content translation handler. File core/modules/content_translation/src/ContentTranslationManagerInterface.php, line 40 Class ContentTranslationManagerInterface Provides an interface f

SqlContentEntityStorageSchema::isTableEmpty

protected SqlContentEntityStorageSchema::isTableEmpty($table_name) Checks whether a database table is non-existent or empty. Empty tables can be dropped and recreated without data loss. Parameters string $table_name: The database table to check. Return value bool TRUE if the table is empty, FALSE otherwise. File core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php, line 1926 Class SqlContentEntityStorageSchema Defines a schema handler that supports revisionable, translatable

AuthenticationCollector::$globalProviders

List of providers which are allowed on routes with no _auth option. Type: string[] File core/lib/Drupal/Core/Authentication/AuthenticationCollector.php, line 36 Class AuthenticationCollector A collector class for authentication providers. Namespace Drupal\Core\Authentication Code protected $globalProviders;

PhpStorageInterface::exists

public PhpStorageInterface::exists($name) Checks whether the PHP code exists in storage. Parameters string $name: The virtual file name. Can be a relative path. Return value bool TRUE if the virtual file exists, FALSE otherwise. File core/lib/Drupal/Component/PhpStorage/PhpStorageInterface.php, line 25 Class PhpStorageInterface Stores and loads PHP code. Namespace Drupal\Component\PhpStorage Code public function exists($name);

ImageInterface::scaleAndCrop

public ImageInterface::scaleAndCrop($width, $height) Scales an image to the exact width and height given. This function achieves the target aspect ratio by cropping the original image equally on both sides, or equally on the top and bottom. This function is useful to create uniform sized avatars from larger images. The resulting image always has the exact target dimensions. Parameters int $width: The target width, in pixels. int $height: The target height, in pixels. Return value bool TRUE on

UserAuthenticationController::$serializer

The serializer. Type: \Symfony\Component\Serializer\Serializer File core/modules/user/src/Controller/UserAuthenticationController.php, line 80 Class UserAuthenticationController Provides controllers for login, login status and logout via HTTP requests. Namespace Drupal\user\Controller Code protected $serializer;

hook_rest_resource_alter

hook_rest_resource_alter(&$definitions) Alter the resource plugin definitions. Parameters array $definitions: The collection of resource definitions. Related topics Hooks Define functions that alter the behavior of Drupal core. File core/modules/rest/rest.api.php, line 19 Describes hooks provided by the RESTful Web Services module. Code function hook_rest_resource_alter(&$definitions) { if (isset($definitions['entity:node'])) { // We want to handle REST requests regarding nod

MenuLinkContentForm::actions

protected MenuLinkContentForm::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 EntityForm::actions File core/modules/menu_link_content/src/Form/MenuLinkContentForm.php, line 89 Class MenuLinkContentForm Provides a form to add/update content menu links. Namespace Drupal\menu_link_content\Form Code protected function

tracker_node_update

tracker_node_update(NodeInterface $node, $arg = 0) Implements hook_ENTITY_TYPE_update() for node entities. Adds tracking information for this node since it's been updated. File core/modules/tracker/tracker.module, line 182 Tracks recent content posted by a user or users. Code function tracker_node_update(NodeInterface $node, $arg = 0) { _tracker_add($node->id(), $node->getOwnerId(), $node->getChangedTime()); }

ViewsExposedForm::$no_ui

Whether the plugin should be not selectable in the UI. If it's set to TRUE, you can still use it via the API in config files. Type: bool File core/modules/views/src/Annotation/ViewsExposedForm.php, line 77 Class ViewsExposedForm Defines a Plugin annotation object for views exposed form plugins. Namespace Drupal\views\Annotation Code public $no_ui;