CalendarBlock
extends O365UncachedBlockBase
in package
implements
ContainerFactoryPluginInterface
Provides a 'Upcoming Appointments' block.
Tags
Interfaces, Classes, Traits and Enums
- ContainerFactoryPluginInterface
Table of Contents
- $dateFormatter : DateFormatter
- Drupal\Core\Datetime\DateFormatter definition.
- $helperService : HelperService
- Drupal\o365\HelperService definition.
- $o365Graph : GraphService
- Drupal\o365\GraphService definition.
- $personaRenderService : PersonaRenderService
- The persona render service.
- __construct() : mixed
- Constructs a new CalendarBlock object.
- access() : mixed
- {@inheritdoc}
- blockForm() : mixed
- {@inheritdoc}
- blockSubmit() : mixed
- {@inheritdoc}
- build() : mixed
- {@inheritdoc}
- create() : mixed
- {@inheritdoc}
- getAttendees() : mixed
- Get the attendees for a event.
Properties
$dateFormatter
Drupal\Core\Datetime\DateFormatter definition.
protected
DateFormatter
$dateFormatter
$helperService
Drupal\o365\HelperService definition.
protected
HelperService
$helperService
$o365Graph
Drupal\o365\GraphService definition.
protected
GraphService
$o365Graph
$personaRenderService
The persona render service.
protected
PersonaRenderService
$personaRenderService
Methods
__construct()
Constructs a new CalendarBlock object.
public
__construct(array<string|int, mixed> $configuration, string $plugin_id, string $plugin_definition, GraphService $o365_graph, HelperService $helperService, DateFormatter $dateFormatter, PersonaRenderService $personaRenderService) : mixed
Parameters
- $configuration : array<string|int, mixed>
-
A configuration array containing information about the plugin instance.
- $plugin_id : string
-
The plugin_id for the plugin instance.
- $plugin_definition : string
-
The plugin implementation definition.
- $o365_graph : GraphService
-
The GraphService definition.
- $helperService : HelperService
-
The HelperService definition.
- $dateFormatter : DateFormatter
-
The DateFormatter definition.
- $personaRenderService : PersonaRenderService
-
The persona render service.
Return values
mixed —access()
{@inheritdoc}
public
access(AccountInterface $account[, mixed $return_as_object = FALSE ]) : mixed
Parameters
- $account : AccountInterface
- $return_as_object : mixed = FALSE
Return values
mixed —blockForm()
{@inheritdoc}
public
blockForm(mixed $form, FormStateInterface $form_state) : mixed
Parameters
- $form : mixed
- $form_state : FormStateInterface
Return values
mixed —blockSubmit()
{@inheritdoc}
public
blockSubmit(mixed $form, FormStateInterface $form_state) : mixed
Parameters
- $form : mixed
- $form_state : FormStateInterface
Return values
mixed —build()
{@inheritdoc}
public
build() : mixed
Tags
Return values
mixed —create()
{@inheritdoc}
public
static create(ContainerInterface $container, array<string|int, mixed> $configuration, mixed $plugin_id, mixed $plugin_definition) : mixed
Parameters
- $container : ContainerInterface
- $configuration : array<string|int, mixed>
- $plugin_id : mixed
- $plugin_definition : mixed
Return values
mixed —getAttendees()
Get the attendees for a event.
private
getAttendees(array<string|int, mixed> $attendees, array<string|int, mixed>|bool &$result) : mixed
Parameters
- $attendees : array<string|int, mixed>
-
The attendees list.
- $result : array<string|int, mixed>|bool
-
The result.