public function Subscription::getState in Feeds 8.3
Returns the state of the subscription.
The state of the subscription can be, for example:
- 'subscribed', which means that the subscription is active.
Return value
string The state of the subscription.
Overrides SubscriptionInterface::getState
1 call to Subscription::getState()
- Subscription::unsubscribe in src/
Entity/ Subscription.php - Unsubscribes from a hub.
File
- src/
Entity/ Subscription.php, line 80
Class
- Subscription
- Defines the subscription entity class.
Namespace
Drupal\feeds\EntityCode
public function getState() {
return $this
->get('state')->value;
}