public function ProductVariationController::collectionTitle in Commerce Core 8.2
Provides the collection title callback for product variations.
Return value
string The title for the product variation collection.
File
- modules/
product/ src/ Controller/ ProductVariationController.php, line 97
Class
- ProductVariationController
- Provides title callbacks for product variation routes.
Namespace
Drupal\commerce_product\ControllerCode
public function collectionTitle() {
// Note that ProductVariationListBuilder::getForm() overrides the page
// title. The title defined here is used only for the breadcrumb.
return $this
->t('Variations');
}