clean install

This commit is contained in:
matze committed 2024-12-10 15:08:16 +01:00
commit e14eb2d8fd
31193 files changed
+3555714

No files matched your search

@@ -0,0 +1,52 @@
<?php
namespace Drupal\entity_browser\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* AJAX command to rerender a formatted text field without any transformation
* filters.
*/
class SelectEntitiesCommand implements CommandInterface {
/**
* A unique identifier.
*
* @var string
*/
protected $uuid;
/**
* A CSS selector string.
*
* @var array
*/
protected $entities;
/**
* Constructs a \Drupal\entity_browser\Ajax\SelectEntities object.
*
* @param string $uuid
* Entity browser instance UUID.
* @param array $entities
* Entities that were selected. Each entity is represented with an array
* consisting of three values (entity ID, entity UUID and entity type).
*/
public function __construct($uuid, $entities) {
$this->uuid = $uuid;
$this->entities = $entities;
}
/**
* Implements \Drupal\Core\Ajax\CommandInterface::render().
*/
public function render() {
return [
'command' => 'select_entities',
'uuid' => $this->uuid,
'entities' => $this->entities,
];
}
}
@@ -0,0 +1,39 @@
<?php
namespace Drupal\entity_browser\Ajax;
use Drupal\Core\Ajax\CommandInterface;
/**
* AJAX command to refresh an entity_browser_entity_reference field widget.
*/
class ValueUpdatedCommand implements CommandInterface {
/**
* The ID for the details element.
*
* @var string
*/
protected $details_id;
/**
* Constructor.
*
* @param string $details_id
* The ID for the details element.
*/
public function __construct($details_id) {
$this->details_id = $details_id;
}
/**
* {@inheritdoc}
*/
public function render() {
return [
'command' => 'entity_browser_value_updated',
'details_id' => $this->details_id,
];
}
}