By grimreaper on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-3.x
Introduced in version:
8.x-3.0-rc2
Issue links:
Description:
In the feature request #3211003: Add more options for channel access, two methods had been added to the ChannelInterface and the ChannelManipulatorInterface.
If you implement these interfaces in contrib or custom code and do not inherit from default service/class, you must implement these new methods.
For ChannelInterface, the new method is:
/**
* Remove an authorized user if present. Do not save the entity.
*
* @param string $uuid
* The uuid of the user to remove.
*
* @return bool
* TRUE if the authorized_users property has been changed. FALSE otherwise.
*/
public function removeAuthorizedUser($uuid);
For ChannelManipulatorInterface, the new method is:
/**
* Check user access to a channel.
*
* @param \Drupal\entity_share_server\Entity\ChannelInterface $channel
* The channel entity.
* @param \Drupal\Core\Session\AccountInterface $user
* The user to check against.
*
* @return bool
* TRUE if the user has access. FALSE otherwise.
*/
public function userAccessChannel(ChannelInterface $channel, AccountInterface $user);
Impacts:
Module developers
Site templates, recipes and distribution developers