DiffFormatter::contextLine

protected DiffFormatter::contextLine($line) Creates a context line. Parameters string $line: An HTML-escaped line. Return value array An array representing a table row. File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 142 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected function contextLine($line) { return array( ' ', array( 'data' => ['#markup' => $line], 'class'

user_cancel

user_cancel($edit, $uid, $method) Cancel a user account. Since the user cancellation process needs to be run in a batch, either Form API will invoke it, or batch_process() needs to be invoked after calling this function and should define the path to redirect to. Parameters array $edit: An array of submitted form values. int $uid: The user ID of the user account to cancel. string $method: The account cancellation method to use. See also _user_cancel() File core/modules/user/user.module, line 6

LocalStream::realpath

LocalStream::realpath() Returns canonical, absolute path of the resource. Implementation placeholder. PHP's realpath() does not support stream wrappers. We provide this as a default so that individual wrappers may implement their own solutions. Return value string Returns a string with absolute pathname on success (implemented by core wrappers), or FALSE on failure or if the registered wrapper does not provide an implementation. Overrides StreamWrapperInterface::realpath File core/lib/Drupal/C

LocalStream::stream_cast

public LocalStream::stream_cast($cast_as) Retrieve the underlying stream resource. This method is called in response to stream_select(). Parameters int $cast_as: Can be STREAM_CAST_FOR_SELECT when stream_select() is calling stream_cast() or STREAM_CAST_AS_STREAM when stream_cast() is called for other uses. Return value resource|false The underlying stream resource or FALSE if stream_select() is not supported. Overrides PhpStreamWrapperInterface::stream_cast See also stream_select() http://ph

Connection::$transactionLayers

Tracks the number of "layers" of transactions currently active. On many databases transactions cannot nest. Instead, we track nested calls to transactions and collapse them into a single transaction. Type: array File core/lib/Drupal/Core/Database/Connection.php, line 53 Class Connection Base Database API class. Namespace Drupal\Core\Database Code protected $transactionLayers = array();

LocaleConfigManager::isSupported

public LocaleConfigManager::isSupported($name) Whether the given configuration is supported for interface translation. Parameters string $name: The configuration name. Return value bool TRUE if interface translation is supported. File core/modules/locale/src/LocaleConfigManager.php, line 532 Class LocaleConfigManager Manages configuration supported in part by interface translation. Namespace Drupal\locale Code public function isSupported($name) { return $this->getDefaultConfigLa

CommentInterface::getAuthorName

public CommentInterface::getAuthorName() Returns the comment author's name. For anonymous authors, this is the value as typed in the comment form. Return value string The name of the comment author. File core/modules/comment/src/CommentInterface.php, line 110 Class CommentInterface Provides an interface defining a comment entity. Namespace Drupal\comment Code public function getAuthorName();

TypedDataInterface::validate

public TypedDataInterface::validate() Validates the currently set data value. Return value \Symfony\Component\Validator\ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded. File core/lib/Drupal/Core/TypedData/TypedDataInterface.php, line 90 Class TypedDataInterface Interface for typed data objects. Namespace Drupal\Core\TypedData Code public function validate();

ContactForm::setRecipients

public ContactForm::setRecipients($recipients) Sets list of recipient email addresses. Parameters array $recipients: The desired list of email addresses of this category. Return value $this Overrides ContactFormInterface::setRecipients File core/modules/contact/src/Entity/ContactForm.php, line 124 Class ContactForm Defines the contact form entity. Namespace Drupal\contact\Entity Code public function setRecipients($recipients) { $this->recipients = $recipients; return $this; }

MessageForm::create

public static MessageForm::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container: The service cont