-
Notifications
You must be signed in to change notification settings - Fork 645
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '5.0' into feature/cms-1262-addressquery-querying-by-pri…
…maryownerid
- Loading branch information
Showing
28 changed files
with
413 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
/** | ||
* @link https://craftcms.com/ | ||
* @copyright Copyright (c) Pixel & Tonic, Inc. | ||
* @license https://craftcms.github.io/license/ | ||
*/ | ||
|
||
namespace craft\base; | ||
|
||
/** | ||
* CpEditable defines the common interface to be implemented by components that | ||
* have a dedicated edit page in the control panel. | ||
* | ||
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 5.0.0 | ||
*/ | ||
interface CpEditable | ||
{ | ||
/** | ||
* Returns the URL to the component’s edit page in the control panel. | ||
* | ||
* @return string|null | ||
*/ | ||
public function getCpEditUrl(): ?string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,13 @@ | |
* @author Pixel & Tonic, Inc. <[email protected]> | ||
* @since 3.0.0 | ||
*/ | ||
interface ElementInterface extends ComponentInterface, Chippable, Thumbable, Statusable, Actionable | ||
interface ElementInterface extends | ||
ComponentInterface, | ||
Chippable, | ||
CpEditable, | ||
Thumbable, | ||
Statusable, | ||
Actionable | ||
{ | ||
/** | ||
* Returns the lowercase version of [[displayName()]]. | ||
|
@@ -907,13 +913,6 @@ public function hasRevisions(): bool; | |
*/ | ||
public function prepareEditScreen(Response $response, string $containerId): void; | ||
|
||
/** | ||
* Returns the element’s edit URL in the control panel. | ||
* | ||
* @return string|null | ||
*/ | ||
public function getCpEditUrl(): ?string; | ||
|
||
/** | ||
* Returns the URL that users should be redirected to after editing the element. | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.