geolocation-8.x-3.x-dev/src/Attribute/MapCenter.php
src/Attribute/MapCenter.php
<?php
namespace Drupal\geolocation\Attribute;
use Drupal\Component\Plugin\Attribute\Plugin;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
* Defines a MapCenter Attribute object.
*
* @see \Drupal\geolocation\MapCenterManager
* @see plugin_api
*
* @Attribute
*/
#[\Attribute(\Attribute::TARGET_CLASS)]
class MapCenter extends Plugin {
public function __construct(
public readonly string $id,
public readonly ?TranslatableMarkup $name = NULL,
public readonly ?TranslatableMarkup $description = NULL,
public readonly ?string $deriver = NULL,
) {}
}
