class ReplicateFieldSubscriber in Bricks 8
Same name and namespace in other branches
- 2.x src/EventSubscriber/ReplicateFieldSubscriber.php \Drupal\bricks\EventSubscriber\ReplicateFieldSubscriber
Event subscriber that handles cloning through the Replicate module.
Hierarchy
- class \Drupal\paragraphs\EventSubscriber\ReplicateFieldSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
- class \Drupal\bricks\EventSubscriber\ReplicateFieldSubscriber
Expanded class hierarchy of ReplicateFieldSubscriber
File
- src/
EventSubscriber/ ReplicateFieldSubscriber.php, line 11
Namespace
Drupal\bricks\EventSubscriberView source
class ReplicateFieldSubscriber extends BaseReplicateFieldSubscriber {
/**
* {@inheritdoc}
*/
public static function getSubscribedEvents() {
$events[ReplicatorEvents::replicateEntityField('bricks_revisioned')][] = 'onClone';
return $events;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ReplicateFieldSubscriber:: |
protected | property | The replicator service. | |
ReplicateFieldSubscriber:: |
public static | function |
Returns an array of event names this subscriber wants to listen to. Overrides ReplicateFieldSubscriber:: |
|
ReplicateFieldSubscriber:: |
public | function | Replicates paragraphs when the parent entity is being replicated. | |
ReplicateFieldSubscriber:: |
public | function | ReplicateFieldSubscriber constructor. |