$template =
$plugin_definition['template'
] ?? NULL;
if (!
$template) { $message =
sprintf( 'Unable to find the Twig template for the component "%s".',
$plugin_id );
throw new InvalidComponentException($message);
} $this->template =
$template;
$this->machineName =
$plugin_definition['machineName'
];
$this->library =
$plugin_definition['library'
] ??
[];
$this->metadata =
new ComponentMetadata( $plugin_definition,
$configuration['app_root'
],
(bool) ($configuration['enforce_schemas'
] ?? FALSE
) );
} /**
* The template path.
*
* @return string|null
* The path to the template.
*/