Skip to content
Discussion options

You must be logged in to vote

We just released 4.0.0-beta.3 with a new prepareEditScreen() method. It takes two arguments:

  • yii\web\Response $response – The current response being prepared (which will have a CpScreenResponseBehavior attached to it)
  • string $containerId – The ID that will be assigned to the element editor’s container element

UPDATE

The next release will also include the following changes (2329b5a):

  • There’s a new CpScreenResponseBehavior::selectedSubnavItem() method, which can be called from elements’ prepareEditScreen() methods.
  • I’ve removed ElementInterface::getCrumbs(). Elements can set the crumbs via CpScreenResponseBehavior::crumbs() from prepareEditScreen() methods as well.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@bencroker
Comment options

@michaelrog
Comment options

@brandonkelly
Comment options

@bencroker
Comment options

@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants