/**
* @covers ::createInstance
*/ publicfunctiontestCreateInstanceInvalidException(){ $this->expectException(InvalidPluginDefinitionException::class); $this->expectExceptionMessage('The "the_plugin_id" plugin did not specify a valid "invalid" form class, must implement \Drupal\Core\Plugin\PluginFormInterface');
publicfunctiontestTwoDifferentEnumsThrows() { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionMessage('"Symfony\Component\Config\Definition\EnumNode" only supports one type of enum, "Symfony\Component\Config\Tests\Fixtures\TestEnum" and "Symfony\Component\Config\Tests\Fixtures\TestEnum2" passed.');
$item = new \stdClass(); if($display_mode != 'title'){ // We render node contents.
$item->description = $build; } $item->title = $node->label(); $item->link = $node->toUrl('canonical', ['absolute' => TRUE])->toString(); // Provide a reference so that the render call in
// template_preprocess_views_view_row_rss() can still access it.
$item->elements = &$node->rss_elements; $item->nid = $node->id(); $build = [
/**
* Checks if a given request has access to read a menu location.
*
* @since 5.9.0
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_Error|bool True if the request has read access for the item, WP_Error object otherwise.
*/