interface SelectionWithAutocreateInterface

Interface for Selection plugins that support newly created entities.

Hierarchy

See also

\Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManager

\Drupal\Core\Entity\Annotation\EntityReferenceSelection

Plugin API

File

core/lib/Drupal/Core/Entity/EntityReferenceSelection/SelectionWithAutocreateInterface.php, line 12

Namespace

Drupal\Core\Entity\EntityReferenceSelection

Members

Name Modifiers Type Description
SelectionWithAutocreateInterface::createNewEntity public function Creates a new entity object that can be used as a valid reference.
SelectionWithAutocreateInterface::validateReferenceableNewEntities public function Validates which newly created entities can be referenced.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!EntityReferenceSelection!SelectionWithAutocreateInterface.php/interface/SelectionWithAutocreateInterface/8.1.x