protected function CommerceAddToCartLinkViewsField::getDefaultLabel in Commerce Add To Cart Link 8
Same name and namespace in other branches
- 2.x src/Plugin/views/field/CommerceAddToCartLinkViewsField.php \Drupal\commerce_add_to_cart_link\Plugin\views\field\CommerceAddToCartLinkViewsField::getDefaultLabel()
Returns the default label for this link.
Return value
string The default link label.
Overrides LinkBase::getDefaultLabel
File
- src/
Plugin/ views/ field/ CommerceAddToCartLinkViewsField.php, line 103
Class
- CommerceAddToCartLinkViewsField
- Defines a Views field that adds an add to cart link.
Namespace
Drupal\commerce_add_to_cart_link\Plugin\views\fieldCode
protected function getDefaultLabel() {
return $this
->t('Add to cart');
}