' . $this->t('Welcome to Image Widget Crop example.') . '
', ], 'description' => [ '#markup' => '' . $this->t('Image Widget Crop provides an interface for using the features of the Crop API.') . '
' . '' . $this->t('You can test the functionality with custom content types created for the demonstration of features from Image Widget Crop:') . '
', ], 'content_types' => [ '#type' => 'item', 'list' => [ '#theme' => 'item_list', '#items' => [ array_values($items), ], ], ], ]; } /** * Add examples cases into list of examples. * * @param array $items * Array of all entity examples available to IWC. * * return array * Array of each examples with all elements added. */ public function addExample(array &$items) { // Add Form API examples. $items['#items'][] = $this->t('@label', [ '@url' => Url::fromRoute('image_widget_crop_examples.form')->toString(), '@label' => $this->t('ImageWidgetCrop Form API examples'), ] ); return $items; } }