ExtendableInterface::extend

public ExtendableInterface::extend($extender_name)

Enhance this object by wrapping it in an extender object.

Parameters

$extender_name: The fully-qualified name of the extender class, without the leading '\' (for example, Drupal\my_module\myExtenderClass). The extender name will be checked against the current database connection to allow driver-specific subclasses as well, using the same logic as the query objects themselves.

Return value

\Drupal\Core\Database\Query\ExtendableInterface The extender object, which now contains a reference to this object.

File

core/lib/Drupal/Core/Database/Query/ExtendableInterface.php, line 30

Class

ExtendableInterface
Interface for extendable query objects.

Namespace

Drupal\Core\Database\Query

Code

public function extend($extender_name);
doc_Drupal
2016-10-29 09:09:37
Comments
Leave a Comment

Please login to continue.